package com.newcapec.shiro.controller;


import com.newcapec.shiro.constant.SystemCode;
import com.newcapec.shiro.utils.RestResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pub")
public class PublicController {

    @GetMapping("/needLogin")
    public RestResponse needLogin(){
        return RestResponse.error(SystemCode.NotLogin.getCode(), SystemCode.NotLogin.getMessage());
    }

    @GetMapping("/noPermited")
    public RestResponse noPermited(){
        return RestResponse.error(SystemCode.AuthError.getCode(), SystemCode.AuthError.getMessage());
    }
}
